/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2022/3/21
 * \* Time: 17:50
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */

class MyThread extends Thread{
    @Override
    public void run(){
        System.out.println("Hello thread");
    }
}

public class Demo1 {
    public static void main(String[] args) {
        Thread t = new MyThread();
        t.start();//启动线程
    }
}
